import java.util.Scanner;
class Account{
    int id;
    String name;
    double balance;

    Account(int id,String name){
        this.id = id;
        this.name = name;
        this.balance = 0;
    }
    Account(int id,String name,double balance){
        this.id = id;
        this.name = name;
        this.balance = balance;
    }

    public boolean equals(Account other){
        return id==other.id;
    }

    public String toString(){
        return "帐号:"+id+" 姓名:"+name+" 余额:"+balance;
    }
}

public class Main3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Account a  = new     Account(sc.nextInt() , sc.next());
        System.out.println(a);
        Account b = new     Account(sc.nextInt() , sc.next(),1000);
        System.out.println(b);
        System.out.println(a.equals(b));
        sc.close();
    }
}
